package com.ldatum.crm.dao;

import java.util.List;

import com.ldatum.crm.domain.TContacts;
import com.ldatum.crm.domain.TCustomer;

public interface TCustomerDao {

	void add(TCustomer customer) throws Exception;

	void delete(TCustomer customer, int id) throws Exception;


	void update(TCustomer customer, int id) throws Exception;


	TCustomer findById(Class<TCustomer> clazz, int id) throws Exception;


	List<TCustomer> myCustomer(Class<TCustomer> clazz, String proprietor) throws Exception;


	String generateNo(String currentDate) throws Exception;	


	void deletes(TCustomer customer, String ids) throws Exception;

	List<TCustomer> publicCustomer(Class<TCustomer> class1) throws Exception;

	List<TCustomer> sharedCustomer(Class<TCustomer> class1) throws Exception;

	void save(TCustomer customer, TContacts contact) throws Exception;

}
